<?php
require_once(dirname(__FILE__)."/../libs/login/login.php");
require_once(dirname(__FILE__)."/../libs/dbclass/dbconnect.php");
$lg=new login();
$lg->checklogin("admin_member");//检验是否登录
$shenfen=$lg->getclassname($lg->getsession("admin_member","rootid"));
$article=$db->dvstr("select count(id) as t from article_content where isshow >=0");//统计文章
$product=$db->dvstr("select count(id) as t from product_content where isshow >=0");//统计产品
$message=$db->dvstr("select count(id) as t from meseage where isshow =1 and status=1");//统计产品


?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body style="background:#fff">
<div class="content">
    <div class="right">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td width="100%" height="24" class="top_head">&nbsp;</td>
      </tr>
      <tr  width="95%"  align="left" >
        <td height="45" valign="middle" style="padding-left:20px;padding-top:10px;">
          <img src="images/head.gif" width="13" height="11"><b>后台管理</b>
         </td>
       </tr>
      
      <tr>
        <td>
        	<table width="92%" border="0" cellspacing="0" cellpadding="0" align="center">
          <!-- UPDATE BEGIN  2002-07-24 16:43:22  -->
          <tr>
            <td colspan="2" bgcolor='#DDD'><table width="100%" border="0" cellspacing="1">
              <tr align="center" height="30">
                <td width="16%" bgcolor="#F5F5F5"><b>你的身份</b></td>
                <td width="84%" bgcolor="#FFFFFF" align="left">&nbsp;<b> <?php echo $shenfen;?></b></td>
              </tr>
              <tr align="center" height="30">
                <td bgcolor="#F5F5F5">文章数量</td>
                <td bgcolor="#FFFFFF" align="left" valign="middle">
                <span  style="color:#F00; margin-left:20px;width:40px; display:block; float:left;" ><?php echo $article["t"];?></span>
                 <input type="button" name="send_2" value="查询详情" onclick="location.href='article/article_list.php'" style=" margin-left:55px;" class="button-style">
                 </td>
              </tr>
              <tr align="center" height="30">
                <td bgcolor="#F5F5F5">产品数量</td>
                <td bgcolor="#FFFFFF" align="left">
                <span  style="color:#F00;margin-left:20px; width:40px;display:block;float:left; "><?php echo $product["t"];?></span>
                <input type="button" name="send_2" value="查询详情"  onclick="location.href='product/product_list.php'" style="margin-left:55px;" class="button-style"/>
                </td>
              </tr>
               <tr align="center" height="30">
                <td bgcolor="#F5F5F5">未读留言</td>
                <td bgcolor="#FFFFFF" align="left" valign="middle">
                <span  style="color:#F00; margin-left:20px;width:40px; display:block; float:left;" ><?php echo $message["t"];?></span>
                 <input type="button" name="send_2" value="查询详情" onclick="location.href='meseage/meseage_list.php?isshow=1'" style=" margin-left:55px;" class="button-style">
                 </td>
              </tr>
            </table></td>
          </tr>
          <!-- UPDATE END 2002-07-24 16:43:33 -->
      </table>
        </td>
      </tr>
    </table>
    
    </div>
</div>
</body>
</html>